package com.zwps.common.core.enums;

import com.zwps.common.tool.RegexTool;
import com.zwps.common.tool.enums.InterfaceEnum;

import lombok.Getter;

@Getter
public enum RegexEnum implements InterfaceEnum<String> {

    PASSWORD(RegexTool.REGEX_PASSWORD, "密码必须包含大小写字母、数字、特殊符号，且长度为8~16");

    private String code;

    private String name;

    private RegexEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getTypeName() {
        return "正则表达式";
    }

}
